package com.zcxy.sys.pojo;

import com.zcxy.mybatis.util.anotation.JoinColumn;
import com.zcxy.mybatis.util.anotation.OneToMany;
import com.zcxy.sys.entity.SysDictItem;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.xmlbeans.impl.xb.xmlschema.BaseAttribute;

import java.util.List;

/**
 * 字典主表
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-06-04
 */
@Data
@ApiModel(value = "SysDictVo", description = "字典主表实体对象")
public class SysDictVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = false)
    private String id;

    @ApiModelProperty(value = "列表代码", required = false)
    private String code;

    @ApiModelProperty(value = "列表名称", required = false)
    private String name;

    @ApiModelProperty(value = "描述", required = false)
    private String remark;

    @ApiModelProperty(value = "0禁用1启用", required = false)
    private String status;

    @ApiModelProperty(value = "排序", required = false)
    private Integer sort;

    @ApiModelProperty(value = "0-可删除1不可删除系统默认", required = false)
    private String canDel;

    @ApiModelProperty(value = "子表数据集合", required = false)
    @OneToMany(targetEntity = SysDictItem.class)
    @JoinColumn(name = "id", referencedColumnName = "dict_id")
    private List<SysDictItem> sysDictItems;


    @ApiModelProperty(value = "判断是否有列表值", required = false)
    private Integer hasItem;

}
